﻿using System;
using System.ComponentModel.DataAnnotations;
using VisionCloud.Core.Model.Enums;

namespace VisionCloud.Domain.DtoModel.MiniApp
{
    public class QueryTaskRequestDto
    {
        /// <summary>
        /// 页码
        /// </summary>
        [Range(1, 200)] public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页多少条
        /// </summary>
        [Range(1, 50)] public int PageSize { get; set; } = 10;

        /// <summary>
        /// 工程阶段：null = 查询全部
        /// </summary>
        public ProjectStageEnum? ProjectStage { get; set; }

        /// <summary>
        /// 任务类型：null = 查询全部
        /// </summary>
        public TaskTypeEnum? TaskType { get; set; }

        /// <summary>
        /// 任务属性：null = 查询全部
        /// </summary>
        public TaskPropertyEnum? TaskProperty { get; set; }
    }
}
